﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ajayumi.Platform.WinForm.WorkSpace
{
   public interface IParentContainer
    {
        /// <summary>
        /// 设置标题
        /// </summary>
        /// <param name="title"></param>
        void SetTitle(string title);

        /// <summary>
        /// 设置描述
        /// </summary>
        /// <param name="desc"></param>
        void SetDescription(string desc);

        /// <summary>
        /// 加载工具条项
        /// </summary>
        void LoadToolStripItems(ToolStripItem[] toolStripItems);

        /// <summary>
        /// 设置工具条按钮可用状态
        /// </summary>
        /// <param name="control"></param>
        /// <param name="value"></param>
        void SetEnabled(ToolStripItem control, bool value);

       /// <summary>
       /// 在容器中呈现控件
       /// </summary>
        void RenderInContainer(WorkSpaceBase workspace);
    }
}
